package com.yutian.example.demo.common.exceptions;

import com.yutian.example.demo.common.vo.HttpResponse;

/**
 * 自定义参数异常
 */
public class MyParamException extends MyServiceException {


    public MyParamException(String errMsg, String[] params) {
        super(HttpResponse.CODE_FAIL_PARAM, errMsg, params, null);
    }

    public MyParamException(String errMsg) {
        super(HttpResponse.CODE_FAIL_PARAM, errMsg, null, null);
    }

    public static MyParamException create(String errMsg){
        return new MyParamException(errMsg, null);
    }
}
